#include <omp.h>
#include <stdio.h>
#include <stdlib.h>

int a[100];
int b[100];
int main(int argc, char **argv)
{
#pragma omp parallel
	{
	  int i = 0;
	  a[0]=1; b[0]=a[0];
	  for (; i < 100; ++i)
		a[i] = i;
	  for (i = 0; i < 100; ++i)
		a[0] = b[i];
#pragma omp critical
			{
				a[i + 1] = a[i] + b[i];
			}

		/*}*/
		a[43] = b[21] + b[2]; //race 2
	}
}
